<? if (!$this->session->userdata('logged_in')) redirect('auth/login'); ?>

<?php $this->load->view('header'); ?>
	
<div id="auth">
	
	<h1>Registrácia</h1>
	
	<?php 
		echo form_open('auth/register');
		echo form_input('meno', set_value('meno', 'Meno'));
		echo form_input('priezvisko', set_value('priezvisko', 'Priezvisko'), 'style="margin-bottom: 25px;"');
		echo form_input('email', set_value('email', 'Emailová adresa'));
		echo form_password('heslo');
		echo form_password('heslo2');
		echo form_submit('submit', 'Zaregistruj sa');
		echo form_close();
	?>
	
	<div class="errors">
		<?= validation_errors() ?>
	</div>
	
</div>
	
<?php $this->load->view('footer'); ?>